#ifndef __PARAMBUFFER_T_H___
#define __PARAMBUFFER_T_H___

#include "config.h"

#ifdef __cplusplus
extern "C" {
#endif

#define MAX_BYTE_PER_BLOCK 1000000

typedef struct paramBuffer
{
	byte				buffer[MAX_BYTE_PER_BLOCK];
	size_t				available;
	struct paramBuffer*	next;
} paramBuffer_t;

/**
 * 
**/
INLINE paramBuffer_t*	paramBuffer_create();

/**
 * 
**/
INLINE void*			paramBuffer_addParams(paramBuffer_t* buf, size_t n);

/**
 * 
**/
INLINE void				paramBuffer_destroy(paramBuffer_t* buf);

/**
 * 
**/
INLINE void				paramBuffer_reset(paramBuffer_t* buf);

#ifdef __cplusplus
}
#endif

#endif /* __PARAMBUFFER_T_H___ */

